package magicArt;

import magicArt.activity.BattleActivity;
import src.margicArt.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MargicArtActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        // 迁移至战斗画面测试用按钮
        Button toFight = (Button) findViewById(R.id.battle);
        toFight.setOnClickListener(new ToFightLintener());
    }
    
    class ToFightLintener implements OnClickListener{

		public void onClick(View v) {
			Intent intent = new Intent();
			intent.setClass(MargicArtActivity.this, BattleActivity.class);
			MargicArtActivity.this.startActivity(intent);
		}
    }
}